from django.conf.urls.defaults import *
from chicago.views import *

urlpatterns = patterns('',
    # Example:
    # (r'^cloutster/', include('cloutster.foo.urls')),

    # Uncomment the next line to enable the admin:
    #(r'^$', 'index'),
    url(r'^kml/wards/$', 
        wards_kml, 
        name="chicago_wards_all_kml"), 
    url(r'^kml/wards/(?P<id>\d+)/$', 
        wards_kml,
        name="chicago_wards_kml"), 

    url(r'^kml/house/$', 
        house_kml, 
        name="chicago_house_all_kml"), 
    url(r'^kml/house/(?P<id>\d+)/$', 
        house_kml,
        name="chicago_house_kml"), 

    url(r'^kml/senate/$', 
        senate_kml, 
        name="chicago_senate_all_kml"), 
    url(r'^kml/senate/(?P<id>\d+)/$', 
        senate_kml,
        name="chicago_senate_kml"), 

    #url(r'^kml/tifs/$', 
    #    tifs_kml, 
    #    name="chicago_tifs_all_kml"), 
    #url(r'^kml/tifs/(?P<id>\d+)/$', 
    #    tifs_kml,
    #    name="chicago_tifs_kml"), 

    url(r'^kml/congress/$', 
        congress_kml, 
        name="chicago_congress_all_kml"), 
    url(r'^kml/congress/(?P<id>\d+)/$', 
        congress_kml,
        name="chicago_congress_kml"), 

    url(r'^wards/(?P<ward>\d+)/$', 
        ward_detail,
        name="chicago_ward_detail"), 
    url(r'^sub/confirm/$',
        'django.views.generic.simple.direct_to_template',
        {'template':'subscribe_confirm.html'},
        name='repsheet_subscribe_confirm'),
    url(r'^sub/confirm/(?P<confirm_key>\w+)/$',
        'repsheet.views.subscribe_complete',
        name='repsheet_subscribe_complete',),
    url(r'^sub/remove/(?P<confirm_key>\w+)/$',
        'repsheet.views.subscribe_remove',
        name='repsheet_subscribe_remove',),
)
